package com.siqi.hr.system.common.model;

/**
 * 外键被那些表引用对象信息
 * @author     xiaogq
 * @date       2016-10-08
 */
public class ColumnUsage {
    /**
     * 引用表名
     */
    private String tableName;

    /**
     * 引用表字段名称
     */
    private String columnName;

    /**
     * 被引用表名
     */
    private String referencedTableName;

    /**
     * 被引用表字段名称
     */
    private String referencedColumnName;

    /**
     * 更新时约束关系
     */
    private String updateRule;

    /**
     * 删除时约束关系
     */
    private String deleteRule;

    public String getTableName(){
        return this.tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getColumnName() {
        return this.columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getReferencedTableName() {
        return this.referencedTableName;
    }

    public void setReferencedTableName(String referencedTableName) {
        this.referencedTableName = referencedTableName;
    }

    public String getReferencedColumnName() {
        return this.referencedColumnName;
    }

    public void setReferencedColumnName(String referencedColumnName) {
        this.referencedColumnName = referencedColumnName;
    }

    public String getUpdateRule() {
        return this.updateRule;
    }

    public void setUpdateRule(String updateRule) {
        this.updateRule = updateRule;
    }

    public String getDeleteRule() {
        return this.deleteRule;
    }

    public void setDeleteRule(String deleteRule) {
        this.deleteRule = deleteRule;
    }

    public ColumnUsage(){
    }

    public ColumnUsage(String tableName, String columnName){
        this.tableName = tableName;
        this.columnName = columnName;
    }
}
